import request from '@/utils/request';

// 柜机类型分页列表
export function pageCabinetType(form) {
    return request({
        url: '/device/cabinetType/page',
        method: 'post',
        data: form,
    });
}

// 新增柜机类型
export function addCabinetType(form) {
    return request({
        url: '/device/cabinetType/add',
        method: 'post',
        data: form,
    });
}

// 查询柜机类型详细
export function detailCabinetType(id) {
    return request({
        url: '/device/cabinetType/detail/' + id,
        method: 'get',
    });
}

// 修改柜机类型
export function modifyCabinetType(form) {
    return request({
        url: '/device/cabinetType/modify',
        method: 'put',
        data: form,
    });
}

// 删除柜机类型
export function deleteCabinetType(ids) {
    return request({
        url: '/device/cabinetType/delete',
        method: 'delete',
        data: ids,
    });
}
